<include file="Public/header" />

<section class="container">
<div class="content-wrap">

    <div class="content">
        <div class="recommend">
            <div id="homeslider" class="carousel slide" data-ride="carousel">
                <?php if($slider = site_template_cache('slider')): ?>
                <ol class="carousel-indicators">
                    <?php foreach($slider as $key=>$vo): ?>
                    <li data-target="#homeslider" data-slide-to="" class="<?php if($key < 2) echo 'active'; ?>"></li>
                    <?php endforeach; ?>
                </ol>
                <div class="carousel-inner" role="listbox">
                    <?php foreach($slider as $key=>$vo): ?>
                    <div class="item<?php if($key < 2) echo ' active'; ?>"><a target="_blank" href="{$vo.url}"><img src="{$vo.image|imageUrl=440,300}" alt="{$vo.text}"></a></div>
                    <?php endforeach; ?>
                </div>
                <a class="left carousel-control" href="/#homeslider" role="button" data-slide="prev"><i class="fa fa-angle-left"></i></a>
                <a class="right carousel-control" href="/#homeslider" role="button" data-slide="next"><i class="fa fa-angle-right"></i></a>
                <?php endif; ?>
            </div>

            <ul>
                <?php $hot_article = get_article_by_ids(site_template_cache('hot_article')); ?>
                <?php if($hot_article): ?>
                <?php foreach($hot_article as $key=>$vo): ?>
                <?php if($key >=4) continue; ?>
                <li class="small"><a href="/article/{$vo.id}" class="recommend-link"><img data-src="{$vo.cover|imageUrl=210,145}" class="thumb" src="" style="display: inline;"><h4>{$vo.title}</h4></a></li>
                <?php endforeach; ?>
                <?php endif; ?>
            </ul>
        </div>

        <div class="newslist">

            <volist name="article_list" id="vo">

            <article class="excerpt">

            <a class="focus" href="/article/{$vo['id']}.html"><img data-src="{$vo.cover|imageUrl=350,240}" class="thumb" alt="{$vo.title}" style="display: inline;"></a>

            <header>
            <a style="background:#3da9f7;" class="cat cat-114" href="/category/{$vo['cid']}.html">{$vo.cid|getCategory="title"}<i style="border-left: 4px solid #3da9f7;"></i></a>
            <h2><a href="/article/{$vo['id']}.html" title="{$vo.title}">{$vo.title}</a></h2>

            </header>
            <p class="note">{$vo.content|get_article_desc=180}</p>
            <p class="meta">
            <time>{$vo.publishtime|dateFormat}</time>
            <time>/</time>
            <span class="pv"><a href="javascript:;">{$vo.author}</a></span>
            </p>
            </article>
            </volist>

            {:W('Pager/widget',array('data'=>array('total'=>$article_count,'listnum'=>C('PAGER_LIST_NUM'),'size'=>C('PER_PAGE_NUM'))))} 
        </div>
    </div>

</div>

<aside class="sidebar">
    <include file="Public/left" />
</aside>

</section>

<include file="Public/footer" />
